package com.xunai.saas.example.controller;

import com.xunai.saas.example.model.param.FindAcupointByParam;
import com.xunai.saas.example.service.AcupointService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 穴位识别示例接口
 *
 * @author Admin
 */
@RequestMapping("/acupointApi")
@RestController
public class AcupointApiExample {

    @Resource
    AcupointService acupointService;

    /***
     * 查询部位列表
     * @return
     */
    @GetMapping("/list")
    public String list() {
        return acupointService.list();
    }

    /***
     * 穴位识别
     * @param findAcupointByParam
     * @return
     */
    @PostMapping("/findAcupointByParam")
    public String findAcupointByParam(@RequestBody FindAcupointByParam findAcupointByParam){
        return acupointService.findAcupointByParam(findAcupointByParam);
    }
}
